/**
 * 
 */
package org.jenkon.formatter;

import java.io.Serializable;

/**
 * Interface for formatting a source object to a destination object.
 * 
 * @author Jens Konopka
 * 
 * @param <S>
 *            the source type
 * @param <D>
 *            the destination type
 */
public interface Formatter<S, D> extends Serializable {

	/**
	 * Method for formatting a source object to a destination object.
	 * 
	 * @param source
	 *            the source value
	 * @return the destination value
	 */
	D format(final S source);

}
